import Api from './api'

class GoodsApi extends Api {
  updateStatus ({ id, goodsStatus }) {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}/status/${id}`,
      method: 'put',
      data: { goodsStatus }
    })
  }
}

export default new GoodsApi('factory/goods')
